package com.hongyuan.coach.ui.member.view_mode;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.coach.base.ItemViewModel;
import com.hongyuan.coach.ui.member.activity.MemberDetailsActivity;
import com.hongyuan.coach.ui.member.beans.MemberCourseBeans;
import com.hongyuan.coach.ui.member.beans.MembersBean;

public class MemberCourseItemViewModel extends ItemViewModel<MemberCourseViewModel> {

    public ObservableField<MemberCourseBeans.ListBean> entity = new ObservableField<>();

    public MemberCourseItemViewModel(@NonNull MemberCourseViewModel viewModel, MemberCourseBeans.ListBean bean) {
        super(viewModel);
        entity.set(bean);
    }

    //改变选中的门店
    /*public BindingCommand goDetails = new BindingCommand(() -> {
        Bundle bundle = new Bundle();
        //bundle.putString("cp_id",String.valueOf(entity.get().getCp_id()));
        viewModel.startActivity(MemberDetailsActivity.class,bundle);
    });*/
}
